<?php
include("conf/config.php");
//Temp Bad
$url = "http://$ccuurl/config/xmlapi/state.cgi?datapoint_id=$temp_bad";
$file = file_get_contents("$url", false, $context);
$xml = simplexml_load_string($file);
$res = ((string) $xml->datapoint[0]['value']);
$temp = round($res, 2);

//Feuchte Bad
$url = "http://$ccuurl/config/xmlapi/state.cgi?datapoint_id=$feuchte_bad";
$file = file_get_contents("$url", false, $context);
$xml = simplexml_load_string($file);
$res = ((string) $xml->datapoint[0]['value']);
$feuchte = round($res, 2);

//SOLL Bad
$url = "http://$ccuurl/config/xmlapi/state.cgi?datapoint_id=$temp_soll_bad";
$file = file_get_contents("$url", false, $context);
$xml = simplexml_load_string($file);
$res = ((string) $xml->datapoint[0]['value']);
$soll = round($res, 2);

//Badetag check true/false 
$url = "http://$ccuurl/config/xmlapi/state.cgi?datapoint_id=$sysvar_badetag";
$file = file_get_contents("$url", false, $context);
$xml = simplexml_load_string($file);
$res = ((string) $xml->datapoint[0]['value']);
if ($res == "true"){
$selected = "selected";
}
else{
$selected = "";
}
?>